#ifndef SPORTPAGEPRESENTER_HPP
#define SPORTPAGEPRESENTER_HPP

#include <gui/model/ModelListener.hpp>
#include <mvp/Presenter.hpp>

using namespace touchgfx;

class SportPageView;

class SportPagePresenter : public touchgfx::Presenter, public ModelListener
{
public:
    SportPagePresenter(SportPageView& v);

    /**
     * The activate function is called automatically when this screen is "switched in"
     * (ie. made active). Initialization logic can be placed here.
     */
    virtual void activate();

    /**
     * The deactivate function is called automatically when this screen is "switched out"
     * (ie. made inactive). Teardown functionality can be placed here.
     */
    virtual void deactivate();

    virtual ~SportPagePresenter() {};
		//SportPagePresenter
		void SportPagePresenterState(bool enable);
		//退出运动模式界面
		virtual void SportPageExit(uint8_t newFiveKeyFunc);
private:
    SportPagePresenter();

    SportPageView& view;
};

#endif // SPORTPAGEPRESENTER_HPP
